package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysIncomingPersonalInformationMapper;
import com.ruoyi.system.domain.SysIncomingPersonalInformation;
import com.ruoyi.system.service.ISysIncomingPersonalInformationService;

/**
 * 产品申请—进件—个人信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-05-07
 */
@Service
public class SysIncomingPersonalInformationServiceImpl implements ISysIncomingPersonalInformationService 
{
    @Autowired
    private SysIncomingPersonalInformationMapper sysIncomingPersonalInformationMapper;

    /**
     * 查询产品申请—进件—个人信息
     * 
     * @param applyId 产品申请id
     * @return 产品申请—进件—个人信息
     */
    @Override
    public SysIncomingPersonalInformation selectSysIncomingPersonalInformationById(Long applyId)
    {
        return sysIncomingPersonalInformationMapper.selectSysIncomingPersonalInformationById(applyId);
    }

    /**
     * 新增产品申请—进件—个人信息
     * 
     * @param sysIncomingPersonalInformation 产品申请—进件—个人信息
     * @return 结果
     */
    @Override
    public int insertSysIncomingPersonalInformation(SysIncomingPersonalInformation sysIncomingPersonalInformation)
    {
        sysIncomingPersonalInformation.setCreateTime(DateUtils.getNowDate());
        return sysIncomingPersonalInformationMapper.insertSysIncomingPersonalInformation(sysIncomingPersonalInformation);
    }

    /**
     * 修改产品申请—进件—个人信息
     * 
     * @param sysIncomingPersonalInformation 产品申请—进件—个人信息
     * @return 结果
     */
    @Override
    public int updateSysIncomingPersonalInformation(SysIncomingPersonalInformation sysIncomingPersonalInformation)
    {
        return sysIncomingPersonalInformationMapper.updateSysIncomingPersonalInformation(sysIncomingPersonalInformation);
    }
}
